﻿using Lightworks.Core.Repository;
using Lightworks.System.Dto;
using Lightworks.System.Models;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Lightworks.System.Services
{
    public interface IUserService
    {
        long Create(AddUserReq user);
        PageData<UserRes> GetUserList(UserSearchReq req);
        bool Save(UpdateUserReq user);
        bool SetAvatar(string avatar);
        bool Delete(long[] id);
        bool ResetPwd(string user, string oldPwd, string newPwd);
        User GetUser(string username);
    }
}
